#ifndef __SHAREMEMORY_H_
#define __SHAREMEMORY_H_
#include<stddef.h>

struct SharedMemory;
typedef struct SharedMemory ShMemory;

ShMemory *InitSharedMemory(const char *pathname,int pro_id,size_t size);
void ClearSharedMemory(ShMemory *m);
void ReadFormSharedMenory(ShMemory *m,void *ptr,size_t size);
void WriteToSharedMenory(ShMemory *m,void *ptr,size_t size);


#endif
